<?php

require '../conn.php';

require 'config.php';

require '../inc/function.php';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../css/admin.css" type="text/css" />

<script type="text/javascript" src="inc/function.js"></script>

<script type="text/javascript" src="../fy_ckeditor/ckeditor.js"></script>

</head>

<body>

<?php

if ($act=='modify'){

  
 	$lbox1=$_POST['lbox1'];
	$lbox2=$_POST['lbox2'];
 
	$sql="update ".$language."_syconfig set 

 	lbox1='$lbox1',
	lbox2='$lbox2' 

	 where id=1";

	mysql_query($sql) or die(mysql_error($sql));

	Msg('','');

}

$query=mysql_query('select * from '.$language.'_syconfig where id=1',$conn);

$row=mysql_fetch_array($query);

?>

<div id="container">

	<div class="edit">

		<h1>网站首页配置<a href="javascript:location.reload();">刷新</a></h1>

		<form name="form1" method="post" action="?act=modify">

	    <table width="100%" border="0" cellpadding="0" cellspacing="0">

        
            <tr>

          <td class="edit_title">公司简介下文字：</td>
          <td><input class="inputtext"  type="text" name="lbox1" value="<?php echo $row['lbox1'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
                  <tr>

          <td class="edit_title">产品展示下文字：</td>
          <td><input class="inputtext"  type="text" name="lbox2" value="<?php echo $row['lbox2'] ?>" size="100"  maxlength="200"/> </td>
          </tr>
          
                  
 
        	<tr>

				<td class="edit_title" height="40">&nbsp;</td>

				<td><input type="submit" name="button" class="button" value="保存配置" /></td>

        	</tr>
        </table>

	</form>

	</div>

</div>

</body>

</html>